Skip to content

Conversation

ChmaraX
Copy link
Contributor

@ChmaraX ChmaraX commented Oct 2, 2025

What changed? Why was the change needed?

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

@linear
Copy link

linear bot commented Oct 2, 2025

@netlify
Copy link

netlify bot commented Oct 2, 2025

Deploy preview added

Name Link
🔨 Latest commit f746d65
🔍 Latest deploy log https://app.netlify.com/projects/dashboard-v2-novu-staging/deploys/68de4dd58a37c50008af6ce7
😎 Deploy Preview https://deploy-preview-9280.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot changed the title fix(api): liquid digest step variable parsing fix(api): liquid digest step variable parsing fixes NV-6757 Oct 2, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2025

PR title automatically updated!

I found the Linear ticket ID fix(api): liquid digest step variable parsing fixes NV-6757 in your branch name and automatically added it to your PR title.

Updated title: fix(api): liquid digest step variable parsing fixes NV-6757


// Now match variable patterns from the processed condition
const variableMatches = processedCondition.match(/[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*(?:\[\d+\])*/g);
const variableMatches = processedCondition.match(/[a-zA-Z_][a-zA-Z0-9_[\].-]+/g);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More permissive regex, since we later have a validation of extracted variables against schema, its safer approach to rather extract even potentially invalid ones like "steps.events..[abc]" and then disallow them later as opposed to do complicated regex and risk missing extraction of even valid ones.

@ChmaraX ChmaraX merged commit d3cf1ba into next Oct 2, 2025
26 of 27 checks passed
@ChmaraX ChmaraX deleted the nv-6757-liquid-raw-conditions-fail-when-hyphen-is-present-eg-digest branch October 2, 2025 10:11
@ChmaraX ChmaraX restored the nv-6757-liquid-raw-conditions-fail-when-hyphen-is-present-eg-digest branch October 2, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant